<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>获取元素-4</title>
</head>
<body>
    <script>
        // 1 获取 body 元素
       var d = document.body;
       console.log(d);
       console.dir(d);
       
        // 2 获取 html 元素
        var h = document.documentElement;
        console.log(h);
    </script>
</body>
</html>